import request from '@/utils/request'

// 查询兼职类型列表
export function listSideWorkType(query) {
  return request({
    url: '/works/sideWorkType/list',
    method: 'get',
    params: query
  })
}

// 查询兼职类型列表
export function listSideWorkTypeAll(query) {
  return request({
    url: '/works/sideWorkType/listAll',
    method: 'get',
    params: query
  })
}

// 查询兼职类型详细
export function getSideWorkType(id) {
  return request({
    url: '/works/sideWorkType/' + id,
    method: 'get'
  })
}

// 新增兼职类型
export function addSideWorkType(data) {
  return request({
    url: '/works/sideWorkType',
    method: 'post',
    data: data
  })
}

// 修改兼职类型
export function updateSideWorkType(data) {
  return request({
    url: '/works/sideWorkType',
    method: 'put',
    data: data
  })
}

// 删除兼职类型
export function delSideWorkType(id) {
  return request({
    url: '/works/sideWorkType/' + id,
    method: 'delete'
  })
}
